package com.crois.barrier.common.spi;

import java.util.ServiceLoader;

/**
 * @author Hou Ze Yu
 * @description
 * @date 2020/10/23
 */
public final class ServiceLoaderUtil {


    private static final String CLASSLOADER_DEFAULT = "default";

    private static final String CLASSLOADER_CONTEXT = "context";

    public static <S> ServiceLoader<S> getServiceLoader(Class<S> clazz) {
            return ServiceLoader.load(clazz, clazz.getClassLoader());
    }


    private ServiceLoaderUtil() {}
}
